import fs from 'fs'
import path from 'path'
import express from 'express'

const router = express.Router()

router.get('/ruei/getActivityData', (request, response) => {
  const json = fs.readFileSync(path.resolve(__dirname, '../../mock/activityData.json'), 'utf-8')

  console.log(`获取数据: ${new Date()}; 数据接口: activityPage`)

  response.status(200).send(json)
})

export default router
